<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>合并单元格</title>
    <style>
        tr,
        td,
        th,
        table {
            text-align: center;
        }
    </style>
</head>

<body>
    <!-- <table>
        <tr>
            <td></td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td></td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td></td>
            <td></td>
            <td></td>
        </tr>
    </table> -->
    <!-- table[border="1" width="200" height"200" cellspacing="0" cellpadding="0"]>(tr>(td*3))*3 最后按tab键 -->
    <table border="1" width="200" height="200" cellspacing="0" cellpadding="0">
        <tr>
            <td>1</td>
            <td>2</td>
            <td rowspan="2">3</td>
        </tr>
        <tr>
            <td>4</td>
            <td>5</td>
        </tr>
        <tr>
            <td colspan="3">7</td>
            <!-- colspan 跨列 rowspan 跨行 -->
        </tr>
    </table>
</body>

</html>